namespace ghost {
	export class BarrierUILayout {
		private static _intance:BarrierUILayout;
		public static getIntance():BarrierUILayout
		{
			if(BarrierUILayout._intance == null)
				new BarrierUILayout;
			return BarrierUILayout._intance;
		}
		public constructor() {
			let s =this;
			BarrierUILayout._intance = s;
		}		
		public layout(s:BarrierUI)
		{			
			s.barrierSp = new Laya.Sprite;
			s.barrierSp.name = "barrierSp";
			s.barrierSp.mouseThrough = true;
			s.barrierSettingUI = new BarrierSettingUI(s);
			
			s.settingBtn = ComCreator.createButton(s,"设置", 100, 20, 100, 42, Conf.blueBtn,20,"#000000");			
			
		}		
	}
}